<!DOCTYPE html>
<html lang="zh">
<head>
     <meta charset="utf-8"/>
     <meta name="viewport" content="width=device-width,inital-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
     <meta name="apple-wap-web-app-capable" content="yes">
     <meta name="apple-wap-web-app-status-bar-style" content="black-translucent">
     <title>$!config.title</title>
     <link href="$!webPath/resources/style/system/front/wap/css/style.css" rel="stylesheet" type="text/css">
     <script src="$!webPath/resources/js/jquery-1.6.2.js"></script>
     <script src="$!webPath/resources/style/system/front/wap/js/jquery.validate.min.js"></script>
     <link href="$!webPath/resources/style/common/css/jquery.rating.css" type="text/css" rel="stylesheet">
     <script src="$!webPath/resources/js/jquery.metadata.js"></script>
     <script src="$!webPath/resources/js/jquery.rating.pack.js" type="text/javascript" language="javascript"></script>

</head>

<body>


<div class="main">

    <div class="phone_hd">
        <a class="back" href="javascript:history.go(-1);">
            <img src="$!webPath/resources/style/system/front/wap/images/back.png" width="25" height="25">
        </a>
        评价
    </div>

    <div class="mt50"></div>

    <div class="order_eva">
        <form action="$!webPath/buyer/order_evaluate_save.htm" method="post" id="theForm">
            <input name="id" type="hidden" id="id" value="$!{obj.id}" />
            <h2><i>店铺名：<strong>$!obj.store.store_name</strong></i></h2>
			#foreach($gc in $obj.gcs)
            <div class="rx-order-eva">
                <dl class="clearfix">
                    <dt>
                    <a href="$!webPath/goods_$!{gc.goods.id}.htm" target="_blank">
                    	#if($!gc.goods.goods_main_photo)
                    	<img width="60" height="60" src="$!webPath/$!{gc.goods.goods_main_photo.path}/$!{gc.goods.goods_main_photo.name}_small.$!{gc.goods.goods_main_photo.ext}">
                    	#else
                    	<img width="60" height="60" src="$!webPath/$!{config.goodsImage.path}/$!{config.goodsImage.name}">
                    	#end
                    </a>
                    </dt>
                    <dd><a href="$!webPath/goods_$!{gc.goods.id}.htm" target="_blank">$!gc.goods.goods_name</a></dd>
                </dl>
            </div>
            <div class="my_eva">
                <div class="my_eva_left">
                    <h4>我的评价</h4>
                    <div class="my_eval">
                        <ul>
                            <li>
                                <i> <input  type="hidden" value="3" id="description_evaluate$!{gc.goods.id}"/> 描述相符： </i>
                                <b id="description_evaluate_text$!{gc.goods.id}">一般</b>
                                <em>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="0.5"
                                           title="非常不满"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="1" title="非常不满"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="1.5"
                                           title="不满意"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="2" title="不满意"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="2.5" title="一般"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="3" title="一般"
                                           checked="checked"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="3.5" title="满意"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="4" title="满意"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="4.5"
                                           title="非常满意"/>
                                    <input class="description_evaluate {split:2}" type="radio" name="description_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="5" title="非常满意"/>
                                </em>
                            </li>
                            <li>
                                <i> <input type="hidden" id="service_evaluate$!{gc.goods.id}" value="3"/> 服务态度：</i>
                                <b id="service_evaluate_text$!{gc.goods.id}">一般</b>
                                <em>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="0.5" title="非常不满"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="1" title="非常不满"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="1.5" title="不满意"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="2" title="不满意"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="2.5" title="一般"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="3" title="一般"
                                           checked="checked"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="3.5" title="满意"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="4" title="满意"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="4.5" title="非常满意"/>
                                    <input class="service_evaluate {split:2}" type="radio" name="service_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="5" title="非常满意"/>
                                </em>
                            </li>
                            <li>
                                <i> <input  type="hidden" id="ship_evaluate$!{gc.goods.id}" value="3"/> 发货速度：</i>
                                <b id="ship_evaluate_text$!{gc.goods.id}">一般</b>
                                <em>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="0.5" title="非常不满"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="1" title="非常不满"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="1.5" title="不满意"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="2" title="不满意"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="2.5" title="一般"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="3" title="一般"
                                           checked="checked"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="3.5" title="满意"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="4" title="满意"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="4.5" title="非常满意"/>
                                    <input class="ship_evaluate {split:2}" type="radio" name="ship_evaluate$!{gc.goods.id}" gc_id="$!{gc.goods.id}" value="5" title="非常满意"/>
                                </em>
                            </li>
                        </ul>
                    </div>

                    <div class="my_eval" style="margin-bottom:20px;">
                        <label>
                      <span>
                        <input name="evaluate_buyer_val$!{gc.goods.id}" type="radio" value="1" checked="checked"/>
                        <em class="red">好评</em><i class="hui2">(加1分)</i>
                      </span>
                        </label>

                        <label>
                       <span>
                        <input name="evaluate_buyer_val$!{gc.goods.id}" type="radio" value="0"/>
                        <em class="green">中评</em><i class="hui2">(不加分)</i>
                       </span>
                        </label>

                        <label>
                        <span>
                        <input name="evaluate_buyer_val$!{gc.goods.id}" type="radio" value="-1"/>
                        <em>差评</em><i class="hui2">(减1分)</i>
                        </span>
                        </label>
                    </div>
                    <div class="eva_text">
                        <textarea name="evaluate_info_$!{gc.goods.id}" cols="" rows="4" id="evaluate_info_$!{gc.goods.id}" placeholder="请输入你的评价"></textarea>
                    </div>
                </div>

                <div class="my_eva_right">
                    <h4>注意</h4>
                    <p>
                        评价后不可更改，请您根据本次交易，给予真实、客观、仔细地评价。
                        您的评价将是其他买家的参考，也将影响卖家的信用。
                        累积信用和计分规则：
                        中评不计分，但会影响卖家的好评率，请慎重本次评价。
                    </p>
                </div>
            </div>
			#end
            <div class="eva_btn">
                <input name="按钮" type="button" value="评价" onclick="save_form();" style="cursor:pointer;"/>
                <!-- <input name="" type="button" value="以后再评" onclick="window.close();" style="cursor:pointer;"> -->
                <!--<a href="javascript:void(0)" onclick="save_form();">评价</a>-->
                <!--<a href="javascript:void(0)" onclick="window.close();">以后再评</a>-->
            </div>
        </form>
    </div>


</div>


<script>
    jQuery(document).ready(function () {
        jQuery('input.description_evaluate').rating({
            callback: function (value, link) {
                var id = jQuery(this).attr("name");
                jQuery("#" + id).val(value);
            },
            focus: function (value, link) {
                var gc_id = jQuery(this).attr("gc_id");
                var title = jQuery(this).attr("title");
                jQuery("#description_evaluate_text" + gc_id).text(title);
            },
            blur: function (value, link) {

            }
        });
        jQuery('input.service_evaluate').rating({
            callback: function (value, link) {
                var id = jQuery(this).attr("name");
                jQuery("#" + id).val(value);
            },
            focus: function (value, link) {
                var gc_id = jQuery(this).attr("gc_id");
                var title = jQuery(this).attr("title");
                jQuery("#service_evaluate_text" + gc_id).text(title);
            }
        });
        jQuery('input.ship_evaluate').rating({
            callback: function (value, link) {
                var id = jQuery(this).attr("name");
                jQuery("#" + id).val(value);
            },
            focus: function (value, link) {
                var gc_id = jQuery(this).attr("gc_id");
                var title = jQuery(this).attr("title");
                jQuery("#ship_evaluate_text" + gc_id).text(title);
            }
        });
        //
    });
    function save_form() {
        if (confirm("评价后不可修改，是否确定评价？")) {
            jQuery("#theForm").submit();
        }
    }
</script>


</div>

</div>


</body>
</html>